﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace Topro.Application.Interface
{
    using Topro.Entity;
    using Topro.Entity.Query;
    using Topro.Entity.Response.Warehouse;

    /// <summary>
    /// 仓库业务接口
    /// </summary>
    public interface WarehouseService
    {
        /// <summary>
        /// 获取仓库
        /// </summary>
        /// <param name="id">编号</param>
        /// <returns></returns>
        WarehouseResponse Get(int id);

        /// <summary>
        /// 获取仓库列表
        /// </summary>
        /// <param name="status">状态</param>
        /// <returns></returns>
        List<WarehouseResponse> GetListByStatus(int status);

        /// <summary>
        /// 更新状态
        /// </summary>
        /// <returns></returns>
        JResult UpdateStatus(int id, int status);

        /// <summary>
        /// 仓库查询
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        DataGrid<WarehouseQueryResponse> GetPager(WarehouseQuery query);
    }
}
